package com.chuangke.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.chuangke.framework.model.LevelModel;

public class SysMenu extends LevelModel<SysMenu> implements Cloneable{
	
	
    private static final long serialVersionUID = 1L;
	
	public static final int MENU_TYPE_DIR = 0 ;
	public static final int MENU_TYPE_MENU = 1 ;
	public static final int MENU_TYPE_BUTTON = 2 ;
	
    private String showBorder;
    private String showTab;
    private String name;
    private String url;
    private String perms;
    private Integer type;
    private String icon;
    private String collapseIcon;//菜单收起时图标
    private Integer orderNum;
    private Byte delFlag;
    private String param ;
	//系统模块
	private String moduleId;
	//业务模型ID
	private String modelId;
	//表单模型ID
	private String formId;

    // 非数据库字段
    @TableField(exist=false)
    private String operate;
    
	public String getOperate() {
		return operate;
	}

	public void setOperate(String operate) {
		this.operate = operate;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPerms() {
		return perms;
	}

	public void setPerms(String perms) {
		this.perms = perms;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public Byte getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Byte delFlag) {
		this.delFlag = delFlag;
	}

	public String getParam() {
		return param;
	}

	public void setParam(String param) {
		this.param = param;
	}

	public String getCollapseIcon() {
		return collapseIcon;
	}

	public void setCollapseIcon(String collapseIcon) {
		this.collapseIcon = collapseIcon;
	}

	public String getShowBorder() {
		return showBorder;
	}

	public void setShowBorder(String showBorder) {
		this.showBorder = showBorder;
	}

	public String getShowTab() {
		return showTab;
	}

	public void setShowTab(String showTab) {
		this.showTab = showTab;
	}

	public String getModuleId() {
		return moduleId;
	}

	public void setModuleId(String moduleId) {
		this.moduleId = moduleId;
	}

	public String getModelId() {
		return modelId;
	}

	public void setModelId(String modelId) {
		this.modelId = modelId;
	}

	public String getFormId() {
		return formId;
	}

	public void setFormId(String formId) {
		this.formId = formId;
	}

	@Override
    public SysMenu clone() {  
		SysMenu menu = null;  
        try{  
        	menu = (SysMenu)super.clone();  
        }catch(CloneNotSupportedException e) {  
            e.printStackTrace();  
        }  
        menu.setChildren(null);
        return menu;  
    }  
	
}